package com.aeye.mbr.upms.rpc.api;

import com.aeye.mbr.common.plugin.mapper.BaseServiceMock;
import com.aeye.mbr.common.result.BootstrapTableParams;
import com.aeye.mbr.common.result.BootstrapTableResult;
import com.alibaba.fastjson.JSONArray;
import com.aeye.mbr.upms.dao.model.UpmsPermission;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* 降级实现UpmsPermissionService接口
* Created by shuzheng on 2017/3/20.
*/
public class UpmsPermissionServiceMock extends BaseServiceMock<UpmsPermission> implements UpmsPermissionService {

    private static Logger _log = LoggerFactory.getLogger(UpmsPermissionServiceMock.class);

    @Override
    public JSONArray getTreeByRoleId(Integer roleId) {
        _log.info("UpmsPermissionServiceMock => getTreeByRoleId");
        return null;
    }

    @Override
    public JSONArray getTreeByUserId(Integer usereId, Byte type) {
        _log.info("UpmsPermissionServiceMock => getTreeByUserId");
        return null;
    }

    @Override
    public BootstrapTableResult<UpmsPermission> selectUpmsPermissionByParams(BootstrapTableParams params, int type, int systemId) {
        return null;
    }
}
